package com.huawei.appmarket.framework.titleframe.title;

import android.app.Activity;
import android.view.View;
import com.huawei.appgallery.foundation.ui.framework.titleframe.bean.BaseTitleBean;
import com.huawei.appgallery.foundation.ui.framework.titleframe.bean.SpinnerBaseTitleBean;
import com.huawei.appmarket.framework.widget.FixedSearchView;
import o.djb;
import o.djd;
import o.Logger;
import o.ewm.c;
import o.ewm.h;
import o.ewm.j;

public class SpinnerSearchBoxTitle extends WiseDistBaseTitle {
    private djd ˏॱ;

    public SpinnerSearchBoxTitle(Activity activity, BaseTitleBean baseTitleBean) {
        super(activity, baseTitleBean);
    }

    public void ʻ() {
        super.ʻ();
        if ((this.ˎ instanceof SpinnerBaseTitleBean) && this.ˏॱ != null) {
            this.ˏॱ.ˋ((SpinnerBaseTitleBean) this.ˎ);
        }
    }

    public String ᐝ() {
        return "spinner_searchbox";
    }

    protected boolean ॱˊ() {
        return false;
    }

    protected boolean ͺ() {
        return false;
    }

    protected boolean ˏॱ() {
        return false;
    }

    protected boolean ˊॱ() {
        return false;
    }

    protected int ʼ() {
        return c.ॱˎ;
    }

    protected View ॱˎ() {
        View inflate = this.ˊ.inflate(h.ॱᵢ, null);
        ((FixedSearchView) inflate.findViewById(j.ˍـ)).setTitleBean(this.ˎ);
        if (this.ˎ instanceof SpinnerBaseTitleBean) {
            TitleSpinner titleSpinner = (TitleSpinner) inflate.findViewById(j.ˍˍ);
            this.ˏॱ = new djd(this.ˋ, titleSpinner, (SpinnerBaseTitleBean) this.ˎ);
            if (!this.ˏॱ.ˏ()) {
                Logger.ˏ("SpinnerSearchBoxTitle", "can show spinner view!");
                titleSpinner.setVisibility(8);
            }
        }
        return inflate;
    }

    public void ॱ(djb o_djb) {
        super.ॱ(o_djb);
        this.ˏॱ.ˏ(o_djb);
    }
}
